package models

import (
	"time"
)

type Poll struct {
	Id int64 `xorm:"oid"`

	Languageid        int       `json:"LanguageId" xorm:"not null INTEGER"`
	Name              string    `json:"Name" xorm:"not null VARCHAR"`
	Systemkeyword     string    `json:"SystemKeyword" xorm:"VARCHAR"`
	Published         int       `json:"Published" xorm:"not null BIT(1)"`
	Showonhomepage    int       `json:"ShowOnHomePage" xorm:"not null BIT(1)"`
	Allowgueststovote int       `json:"AllowGuestsToVote" xorm:"not null BIT(1)"`
	Displayorder      int       `json:"DisplayOrder" xorm:"not null INTEGER"`
	Startdateutc      time.Time `json:"StartDateUtc" xorm:"DATETIME"`
	Enddateutc        time.Time `json:"EndDateUtc" xorm:"DATETIME"`
}
